<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Trust Fee Collection</title>
		<link rel="stylesheet" href="../../css/styles.css" type="text/css" />
	</head>
	<script type="text/javascript">
	  
	  function showEnterForm(){
	      document.getElementById("enterDiv").style.display = "block";
	      document.getElementById("viewDiv").style.display = "none";
	  }
	  
	  function showSearchForm(){
	      document.getElementById("enterDiv").style.display = "none";
	      document.getElementById("viewDiv").style.display = "block";
	  }
	</script>
<body>
	<div id="container">
		<jsp:include page="/jsp/menu.jsp" />
                <div style="height:420px;">
			  		<div class="path">
						<br><a href="home.htm"> Home </a>-&gt;
						<a> Account </a>-&gt;
						<a> Fee </a>-&gt;
						<a> Fee Collection</a>-&gt;
						<a href="trustFee.htm"> Trust Fee </a>
					</div>
			  		<div id="leftDiv" style="margin-left: 10px;margin-top: 20px">
			   			<b>Trust Fee Collection</b><br><br>
						<fieldset style="height:80px; width:200px;background: #FFFFFF;">
						<table cellpadding=20>
						<tr>
							<td>
								<a href="javascript:showSearchForm()">
			                        	View Trust Fee  
								</a>
							</td>
						</tr>
						<tr>
							<td>
			                 	<a href="javascript:showEnterForm()">
			                        	Enter Trust Fee 
			                 	</a>
							</td>
						</tr>
						</table>
						</fieldset>
			  		</div>
				</div>
                 <div id="viewDiv" class="maininfo" style="display: none">
                 	<form:form method="POST" action="getTrustFeeCollection.htm" commandName="trustFee">
						<div id="searchForm">
							<div class="lable">
								Trust Fee Collection
							</div>
								<table>
									<tr>
										<th> Search By Division </th>
										<td><form:input path="trustFeeDivision" /></td>
									</tr>
									<tr>
										<th> Search By Student Name </th>
										<td><form:input path="trustFeeStudName" /></td>
									</tr>
									<tr>
										<th>Search By Student Id </th>
										<td><form:input path="trustFeeStudId" /></td>
									</tr>
									<tr>
										<th> Search By Pending Fees </th>
										<td><form:input path="trustFeeStudPendingFee" /></td>
									</tr>
									<tr>
										<th></th>
										<td><input type ="Submit" value="Search" size=10></td>
									</tr>
								</table>
						</div>
						<div id="viewTable" style="overflow: scroll; width:700px; height:125px">
								<table>
								<tr>
									<th rowspan=2> Division</th>
									<th rowspan=2> Student Id</th>
									<th rowspan=2> Student Name </th>
									<th rowspan=2> Mode Of Payment </th>
									<th rowspan=2> Cheque/DD No. </th>
									<th rowspan=2> Date of Payment </th>
									<th colspan=3> Prospectus Fee </th>
									<th colspan=3> Caution Money </th>
									<th colspan=3> Other Fees </th>
									<th colspan=3> Transport Fee </th>
									<th colspan=3> Hostel Fee </th>
								</tr>
								<tr>
									<th>Paid</th>
									<th>Left</th>
									<th>Receipt</th>
									<th>Paid</th>
									<th>Left</th>
									<th>Receipt</th>
									<th>Paid</th>
									<th>Left</th>
									<th>Receipt</th>
									<th>Paid</th>
									<th>Left</th>
									<th>Receipt</th>
									<th>Paid</th>
									<th>Left</th>
									<th>Receipt</th>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>	
									<td> </td>
									<td> </td>
									<td> </td>	
									<td> </td>
									<td> </td>
								</tr>
							</table>
						</div>
					</form:form>
				  </div>
			 	<div id="enterDiv" class="maininfo" style="display: none">
			 		<form:form method="POST" action="saveTrustFeeCollection.htm" commandName="trustFee">
			 			<div class="lable">
								Trust Fee Collection
						</div>
						<table>
							<tr>
								<th> Division : </th>
								<td><form:input path="trustFeeDivision" /></td>
							</tr>
							<tr>
								<th> Student Id : </th>
								<td><form:input path="trustFeeStudId" /></td>
							</tr>
							<tr>
								<th> Student Name : </th>
								<td><form:input path="trustFeeStudName" /></td>
							</tr>
							<tr>
								<th>Mode of Payment : </th>
								<td><form:radiobutton path="trustFeePamymentMode" value="cash" />Cash
								<form:radiobutton path="trustFeePamymentMode" value="dd" />DD
								<form:radiobutton path="trustFeePamymentMode" value="cheque" />Cheque</td>
							</tr>
							<tr>
								<th>Cheque no. : </th>
								<td><form:input path="trustFeeChequeNo" /></td>
							</tr>
							<tr>
								<th>DD no. :</th>
								<td><form:input path="trustFeeDDNo" /></td>
							</tr>
							
							<tr>
								<th> Date of Payment: </th>
								<td><form:input path="trustFeePaymentDate" /></td>
							</tr>
							<tr>
								<th></th>
								<th>Paid </th>
								<th>Left </th>
								<th>Receipt No. </th>
							</tr>
							<tr>
								<th>Prospectus Fee : </th>
								<td><form:input path="trustFeeProspectusPaid" /></td>
								<td><form:input path="trustFeeProspectusLeft" /></td>
								<td><form:input path="trustFeeProspectusReceiptNo" /></td>
							</tr>
							<tr>
								<th>Caution Money : </th>
								<td><form:input path="trustFeeCautionMoneyPaid" /></td>
								<td><form:input path="trustFeeCautionMoneyLeft" /></td>
								<td><form:input path="trustFeeCautionMoneyReceiptNo" /></td>
							</tr>
							<tr>
								<th>Other Fees : </th>
								<td><form:input path="trustFeeOtherFeePaid" /></td>
								<td><form:input path="trustFeeOtherFeeLeft" /></td>
								<td><form:input path="trustFeeOtherFeeReceiptNo" /></td>
							</tr>
							<tr>
								<th>Transport Fee : </th>
								<td><form:input path="trustFeeTransportFeePaid" /></td>
								<td><form:input path="trustFeeTransportFeeLeft" /></td>		
								<td><form:input path="trustFeeTransportFeeReceiptNo" /></td>
							</tr>
							<tr>
								<th>Hostel Fee : </th>
								<td><form:input path="trustFeeHostelFeePaid" /></td>
								<td><form:input path="trustFeeHostelFeeLeft" /></td>
								<td><form:input path="trustFeeHostelFeeReceiptNo" /></td>
							</tr>
							<tr>	
								<th></th>
								<td><input type=submit name="submit"  value="Submit" /></td>
							</tr>
						</table>
					</form:form>
				</div>
	
	<div id="footer">
		<jsp:include page="/jsp/footer.jsp" />
	</div>
	</div>
</body>
</html>